package com.chw.admin.usergroup;

import java.util.List;
import java.util.Map;

import com.github.pagehelper.PageInfo;

public interface ISysUserGroupService {
	
	PageInfo<SysGroup> page(SysGroup record, int currentPage, int pageSize) throws Exception;
	
	SysGroup selectById(String id) throws Exception;
	
	void saveOrUpdate(SysGroup record) throws Exception;
	
	void updateStatus(String id, String status) throws Exception;
	
	void delete(String id) throws Exception;
	
	void addSysUserToGroup(SysGroupUser record) throws Exception;
	
	List<Map<String,Object>> getUserByGroup(SysGroupUser record) throws Exception;
	
	void deleteUserFormGroup(SysGroupUser record) throws Exception;
	
	boolean hasGroupName(String name,String id) throws Exception;
}
